package com.jm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jm.common.util.entity.SelectCondition;
import com.jm.pojo.Employee;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface EmployeeService extends IService<Employee> {
    boolean checkUsernameIsExists(String username);

    Employee getLogin(String username, String password);

    IPage<Employee> selectByPageCondition(SelectCondition condition);
}
